
import { get, post,put } from '../utils/request';
import { HTTP_REQUEST_URL } from '../config/app.js';

// 获得新闻政策分页
export const getUploadUrl = (path) => {
  return get(HTTP_REQUEST_URL,'/admin-api/infra/file/presigned-url?path='+path,{},true);
};
//上传
export const uploadFile = (file) => {
  return get(HTTP_REQUEST_URL,'/admin-api/infra/file/presigned-url',{},false);
};

// 根据字典类型查询字典数据信息
export const getDictData = (type) => {
  return get(HTTP_REQUEST_URL,'/app-api/system/dict-data/type?type='+type,{},false);
};







